const QRCode = require('qrcode')

function main() {
  QRCode.toDataURL(
    'some text',
    { errorCorrectionLevel: 'H' },
    function (err, url) {
      console.log(typeof url)
    }
  )
}

main()
